home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "Adventure Works Database Creation Utility"
- ClientHeight = 2025
- ClientLeft = 1140
- ClientTop = 1515
- ClientWidth = 6795
- Height = 2430
- Left = 1080
- LinkTopic = "Form1"
- ScaleHeight = 2025
- ScaleWidth = 6795
- Top = 1170
- Width = 6915
- Begin VB.TextBox Text1
- Height = 495
- Left = 240
- TabIndex = 1
- Top = 1080
- Width = 6255
- End
- Begin VB.CommandButton Command1
- Caption = "Create Adventure Works Database"
- Height = 615
- Left = 1920
- TabIndex = 0
- Top = 120
- Width = 2775
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub Command1_Click()
- Dim objCreateAWData As New AWDataUtil
- Text1.Text = "Creating Customer Tables. Please wait..."
- Form1.Refresh
- objCreateAWData.AWCreate_Customers
- Text1.Text = "Creating Order and Payment Tables. Please wait..."
- Form1.Refresh
- objCreateAWData.AWCreate_Orders
- Text1.Text = "Creating Product Tables. Please wait..."
- Form1.Refresh
- objCreateAWData.AWCreate_Products
- Text1.Text = "Complete. Thanks for your patience."
- Form1.Refresh
- End Sub
- Private Sub Form_Load()
- Dim objCreateAWData As New AWDataUtil
- Form1.Show
- Text1.Text = "Creating Customer Tables. Please wait..."
- Form1.Refresh
- objCreateAWData.AWCreate_Customers
- Text1.Text = "Creating Order and Payment Tables. Please wait..."
- Form1.Refresh
- objCreateAWData.AWCreate_Orders
- Text1.Text = "Creating Product Tables. Please wait..."
- Form1.Refresh
- objCreateAWData.AWCreate_Products
- Text1.Text = "Complete. Thanks for your patience."
- Form1.Refresh
- Unload Form1
- End Sub
-